package com.ujoin.action.follow;

import org.springframework.beans.factory.annotation.Autowired;

import com.ujoin.bean.Follow;
import com.ujoin.service.FollowService;
import com.ujoin.util.ActionEnhanced;

public class FindFollowerAction extends ActionEnhanced {

	private int userId;
	
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Autowired
	private FollowService followService;
	
	@Override
	public String execute() {
		setJson(followService.findFollower(userId));
		return SUCCESS;
	}
}
